############################################################################
# Tests/Functional/Core/SelfConsistenceTest/CMakeLists.txt
############################################################################

set(test TestSelfConsistence)

# CoreStandardTest cases:
set(test_cases
    SpecularWithSlicing
    InstrumentDefinitionComparison
    TOFResolutionComparison
    PolarizedQAngleReflectivityPP
    PolarizedQAngleReflectivityMM
    )

file(GLOB source_files "*.cpp")
file(GLOB include_files "*.h")

add_executable(${test} ${include_files} ${source_files})
target_link_libraries(${test} BornAgainCore BornAgainTestMachinery)
foreach(test_case ${test_cases})
    add_test(${test}/${test_case}
        ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${test} ${test_case})
endforeach()
